﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MXComponent.Views.formula
{
    /// <summary>
    /// SGWindow.xaml 的交互逻辑
    /// </summary>
    public partial class SGWindow : Window
    {
        public SGWindow()
        {
            InitializeComponent();
        }

        public void  BindDate(DataTable dt)
        {
            this.dgvList.ItemsSource = dt.DefaultView;
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            e.Cancel = true;  // cancels the window close    
            this.Hide();
        }
    }
}
